//
//  FourCollectionViewCell.m
//  Cartoon
//
//  Created by dllo on 15/10/30.
//  Copyright © 2015年 YSZ. All rights reserved.
//

#import "FourCollectionViewCell.h"

@implementation FourCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        
        self.lastupLabel = [[UILabel alloc] init];
        self.smallTitleLabel = [[UILabel alloc] init];
        self.QDTJimage = [[UIImageView alloc] init];
        
        [self.contentView addSubview:_lastupLabel];
        [self.contentView addSubview:_smallTitleLabel];
        [self.contentView addSubview:_QDTJimage];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
    [super applyLayoutAttributes:layoutAttributes];
    _smallTitleLabel.frame = CGRectMake(0, 110* HEIGHT, 110 * WIDTH, 20 * HEIGHT);
    
    _QDTJimage.frame = CGRectMake(0,  0 * HEIGHT, 165 * WIDTH , 110 * HEIGHT);
    _lastupLabel.frame = CGRectMake(130 * WIDTH, 110 * HEIGHT, 60 * WIDTH, 20 * HEIGHT);
    _lastupLabel.textColor = [UIColor lightGrayColor];
    _lastupLabel.font = [UIFont systemFontOfSize:15 * WIDTH];
    _smallTitleLabel.font = [UIFont systemFontOfSize:15 *WIDTH];
    
}
@end
